﻿<%@ Page Title="Welcome to Frontdesk - The ultimate customer engagement tool" Language="C#"
    MasterPageFile="~/Views/Shared/Frontdesk.Master" Inherits="System.Web.Mvc.ViewPage<Sendz.WebUI.Models.LostPasswordViewModel>" %>

<asp:Content ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ContentPlaceHolderID="MainContent" runat="server">
    <h2>
        Uh Oh! Bad Memory Eh!?</h2>
    <p class="justify">
        If you lost your password, it's no big deal. Just enter the username & email address
        that you have on-file with us in the textboxes below, and we will reset your password
        to something random and email it to you. Then, you will be asked to change your
        password the next time you login. If you still have problems, just send us an email!</p>
    <% using (Ajax.BeginForm(new AjaxOptions { OnBegin = "onBegin", UpdateTargetId = "wrapper", InsertionMode = InsertionMode.Replace }))
       { %>
    <div class="form-field">
        <div class="form-field-label">
            <%: Html.LabelFor(l => l.Username) %>
        </div>
        <div class="form-field-error">
            <%: Html.ValidationMessageFor(l => l.Username)%></div>
        <div class="form-field-input">
            <%: Html.TextBoxFor(l => l.Username, new { @class = "frontdesk" })%></div>
    </div>
    <div class="form-field">
        <div class="form-field-label">
            <%: Html.LabelFor(l => l.Email) %>
        </div>
        <div class="form-field-error">
            <%: Html.ValidationMessageFor(l => l.Email)%></div>
        <div class="form-field-input">
            <%: Html.TextBoxFor(l => l.Email, new { @class = "frontdesk" })%></div>
    </div>
    <div class="form-actions">
        <input type="submit" value="Reset Password" class="button" title="Reset my password" />
        <input type="button" value="Cancel" class="button" onclick="window.location = '<%: Url.Action("Login") %>';" />
    </div>
    <% } %>
</asp:Content>
<asp:Content ContentPlaceHolderID="Sidebar" runat="server">
</asp:Content>
<asp:Content ContentPlaceHolderID="footer" runat="server">
</asp:Content>
